<template>
  <div class="exception">
    <el-row>
      <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
        <img :src="image" />
      </el-col>
      <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
        <div class="exceptionTip">
          <div class="title">404</div>
          <div class="tip">集鲜丰提醒：抱歉你访问的地址不存在</div>
          <div class="opr">
            <el-button type="primary" size="small" @click="goHome">返回首页</el-button>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: "Error404",
    data() {
      return {
        image: 'https://gw.alipayobjects.com/zos/rmsportal/KpnpchXsobRgLElEozzI.svg'
      }
    },
    methods: {
      goHome() {
        this.$router.push({name: 'home'});
      }
    }
  }
</script>

<style lang="scss">
  .exception {
    margin: 24px 24px 0;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    box-sizing: border-box;
    .el-row {
      min-height: 500px;
      .el-col {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 500px;
        img {
          max-width: 100%;
          max-height: 100%;
        }
        .exceptionTip {
          margin-top: 2%;
          width: 100%;
          .title {
            margin: 0 0 3% 0;
            font-size: 40px;
            font-weight: bolder;
          }
          .tip {
            margin-bottom: 2%;
            font-size: 18px;
            color: #666;
          }
          .opr {

          }
        }
      }
    }
  }
</style>

